package com.test.test01.schedule.task;

import com.test.test01.service.BannerService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * 需要执行的任务
 */
@Component
public class PerformTask {

    @Resource
    private BannerService bannerService;

    /**
     * 处理消息队列
     */
    public void handlerExMessage() {
        bannerService.listBanner();
    }
}
